<!-----------弹窗------------->
<template>
  <div>
    <button class="btn btn-smallersize btn-bluebg btn-opendialog" v-on:click="openDialog">打开弹窗</button>
    <dialog v-show="showDialog" :dialog-option="dialogOption" ref="dialog"></dialog>
  </div>
</template>

<script>
	import dialog from '@/components/dialog'

  export default {
    name: 'dialogpop',
    components: {
      'dialog': dialog
    },
    data() {
      return {
				showDialog:false,
				dialogOption:""
      }
    },
    created() {
    },
    methods: {
      openDialog: function () {
        this.showDialog = true;
//				this.$ref.dialog.confirm().then(() => {
//					this.showDialog = false;
//					next();
//				}).catch(() => {
//					this.showDialog = false;
//					next();
//				})
      }
    }
  }
</script>
